class Search

  def self.search(params)
    query = "select * from ads
             where ads.label LIKE '%#{params[:tags]}%'
             and board_id=#{params[:board]}"

    @ads ||= Ad.find_by_sql(query)
  end

end
